Repository navigation
task: send G33 $1 moves when no F word was set - #4941
Open
grandixximo wants to merge 1 commit into
Open
grandixximo wants to merge 1 commit into
grandixximo wants to merge 1 commit into
Conversation
STRAIGHT_FEED drops a move with zero feed rate unless spindle sync is on, so G33 runs with F still 0. That check read the sync flag of canon.spindle_num, which only G94/G95 set (0 in G94), while G33 $1 set the flag of spindle 1. So G33 ... $1 with no F word programmed was dropped silently and the axis never moved. STOP_SPEED_FEED_SYNCH likewise cleared the wrong spindle's flag. Motion syncs one spindle at a time, so canon keeps one flag instead of one per spindle. tests/motion/g33-spindle-select runs G33 $1 on two simulated spindles with no F word; it fails on master with Z left at the start.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
G33 ... $1does not move the axis when no F word has been programmed. There is no error; the line just completes.STRAIGHT_FEED drops a move with zero feed rate unless spindle sync is on, so that G33 runs with F still 0. The check read the sync flag of
canon.spindle_num, which only G94/G95 set (spindle 0 in G94), whileG33 $1set the flag of spindle 1.STOP_SPEED_FEED_SYNCHlikewise cleared the wrong spindle's flag. Spindle 0 and any program with an F word were not affected, which is probably why this went unnoticed.Motion syncs one spindle at a time, so canon now keeps a single sync flag instead of one per spindle.
Testing
New test
tests/motion/g33-spindle-select: two simulated spindles,M3 $1 S600,G33 Z-5 K1 $1with no F word. On master Z stays at the start; with the fix it ends at -5 with spindle 1 turned the expected revolutions. A new test because the existing G33 tests loadcore_sim.hal, which has a single spindle. tests/motion, tests/interp, tests/remap and tests/trajectory-planner pass.